* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #f5f7fa;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* 触发按钮样式 */
.receive-add-friendReq-trigger {
    top: 20px;
    right: 20px;
    background: linear-gradient(to right, #3de73c00, #00ff7c00);
    color: #383838;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    z-index: 999;
}

.receive-add-friendReq-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.receive-add-friendReq-badge {
    background-color: #46c00fa3;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
}

/* 弹窗样式 */
.receive-add-friendReq-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.receive-add-friendReq-modal-content {
    justify-content: center;

    background-color: white;
    width: 450px;
    max-height: 60vh;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.receive-add-friendReq-modal-header {
    background: linear-gradient(to right, #000000, #000000);
    padding: 20px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.receive-add-friendReq-modal-title {
    font-size: 20px;
    font-weight: 600;
}

.receive-add-friendReq-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.receive-add-friendReq-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.receive-add-friendReq-modal-body {
    padding: 0;
    flex: 1;
    overflow-y: auto;
    max-height: 60vh;
}

/* 单个好友请求项样式 */
.receive-add-friendReq-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    transition: background-color 0.2s;
}

.receive-add-friendReq-item:hover {
    background-color: #f9f9f9;
}

.receive-add-friendReq-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #ecf0f1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #7f8c8d;
    border: 2px solid #ddd;
    margin-right: 15px;
    flex-shrink: 0;
}

.receive-add-friendReq-info {
    flex: 1;
}

.receive-add-friendReq-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #2c3e50;
}

.receive-add-friendReq-uid {
    font-size: 12px;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.receive-add-friendReq-message {
    font-size: 14px;
    color: #34495e;
    line-height: 1.4;
}

.receive-add-friendReq-actions {
    display: flex;
    gap: 8px;
    margin-left: 10px;
}

.receive-add-friendReq-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.receive-add-friendReq-accept {
    background-color: #2ecc71;
    color: white;
}

.receive-add-friendReq-accept:hover {
    background-color: #27ae60;
}

.receive-add-friendReq-decline {
    background-color: #e74c3c;
    color: white;
}

.receive-add-friendReq-decline:hover {
    background-color: #c0392b;
}

.receive-add-friendReq-empty {
    padding: 40px 20px;
    text-align: center;
    color: #7f8c8d;
}

.receive-add-friendReq-empty i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}
